<template>
  <div class="vin-category">
    <div class="vin-category__cateList">
      <div v-if="type == 'classify' || type == 'text'">
        <div class="vin-category__cateListLeft" v-for="(item, index) in category" :key="index">
          <div
            :class="[
              checkIndex == index
                ? 'vin-category__cateListItemChecked'
                : 'vin-category__cateListItem',
            ]"
            @click="getChildList(index)"
          >
            {{ item.catName }}
          </div>
        </div>
      </div>

      <slot></slot>
    </div>
  </div>
</template>
<script>import s from './index.js';export default s;</script>